/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.mockexam.special.user.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.jeesite.common.mybatis.annotation.JoinTable;
import com.jeesite.common.mybatis.annotation.JoinTable.Type;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 专项练习记录表Entity
 * @author zpp
 * @version 2020-02-17
 */
@Table(name="t_mockexam_special_user", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="special_id", attrName="specialId", label="专项练习标识"),
		@Column(name="special_title", attrName="specialTitle", label="专项练习主题", queryType=QueryType.LIKE),
		@Column(name="state", attrName="state", label="数据状态"),
		@Column(name="type", attrName="type", label="类型说明"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="barbecue_time", attrName="barbecueTime", label="练习时间"),
		@Column(name="barbecue_edtime", attrName="barbecueEdtime", label="练习完成时间"),
		@Column(name="score", attrName="score", label="得分"),
	}, orderBy="a.update_date DESC"
)
public class TmockexamSpecialUser extends DataEntity<TmockexamSpecialUser> {
	
	private static final long serialVersionUID = 1L;
	private String specialId;		// 专项练习标识
	private String specialTitle;		// 专项练习主题
	private Integer state;		// 数据状态
	private String type;		// 类型说明
	private Date barbecueTime;		// 练习时间
	private Date barbecueEdtime;		// 练习完成时间
	private BigDecimal score;		// 得分
	
	public TmockexamSpecialUser() {
		this(null);
	}

	public TmockexamSpecialUser(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="专项练习标识长度不能超过 50 个字符")
	public String getSpecialId() {
		return specialId;
	}

	public void setSpecialId(String specialId) {
		this.specialId = specialId;
	}
	
	@Length(min=0, max=255, message="专项练习主题长度不能超过 255 个字符")
	public String getSpecialTitle() {
		return specialTitle;
	}

	public void setSpecialTitle(String specialTitle) {
		this.specialTitle = specialTitle;
	}
	
	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	
	@Length(min=0, max=50, message="类型说明长度不能超过 50 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBarbecueTime() {
		return barbecueTime;
	}

	public void setBarbecueTime(Date barbecueTime) {
		this.barbecueTime = barbecueTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBarbecueEdtime() {
		return barbecueEdtime;
	}

	public void setBarbecueEdtime(Date barbecueEdtime) {
		this.barbecueEdtime = barbecueEdtime;
	}
	
	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}
	
}